package com.gadgets.framework.thread.task;

/**
 * @author UncleXiu
 * @version V1.0.0
 * @data 2020-09-12
 *
 */
public abstract class AbstractRunnable extends AbstractThreadTask implements Runnable{

    /**
     * 任务状态
     */
    private int status = 0;

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    protected void taskFinish(){
        status = -1;
    }

}
